﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FourSquareSQH.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Index(FormCollection collection)
        {
            if (collection["Search"] != "")
            {
                return RedirectToAction("Index", "FourSquare", new { near = collection["Search"] });
            }

            return View();
        }
    }
}
